import { Navigate } from 'react-router-dom'
import Home from '../page/Home/index'
import Search from '../page/Search/index'
import Category from '../page/Home/Category/index'

const router = [
    {
        path:'/',
        element: <Navigate to='/home'/>
    },
    {
        path:'/home',
        element: <Home />,
        children: [
            {
                path: '/home/category/:id',
                element: <Category />
            }
        ]
    },
    {
        path:'/search',
        element: <Search />
    }
]

export default router